#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
using namespace std;
int main()
{
    int hh;
    int mm;
    scanf("%d:%d", &hh, &mm);
    if (hh < 12 || (hh == 12 && mm == 0))
    {
        printf("Only %02d:%02d.  Too early to Dang.\n", hh, mm);
    }
    else
    {
        for (int i = 0; i < hh - 12; i++)
        {
            printf("Dang");
        }
        if (mm > 0)
        {
            printf("Dang");
        }
        printf("\n");
    }
    return 0;
}